package com.qingxin.wuye.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.GenericGenerator;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 报修工单
 * WyRepairOrders entity. 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "wy_repair_orders")
public class WyRepairOrders extends com.qingxin.sys.entity.BaseEntity implements
		java.io.Serializable {
	private static final long serialVersionUID = -5059715569219293751L;
	// Fields

	private String ordersid;
	private String gardenid;
	private String serialNumber;
	private Date repairTime;
	private Integer repairType;
	private String contents;
	private String roomCode;
	private Integer dispatchStatus;
	private Integer completionStatus;
	private Integer returnVisitsStatus;
	private String linkman;
	private String linkphone;
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date appointmentTime;
	private String maintainKind;
	private Integer customKind;
	private Integer secondaryMaintain;
	private String remark;
	private String cruser;
	private Date crtime;

	private String gardenName;
	
	// Constructors

	/** default constructor */
	public WyRepairOrders() {
	}

	public WyRepairOrders(String ordersid, String serialNumber,
			Date repairTime, Integer repairType, String contents,
			String roomCode, Integer dispatchStatus, Integer completionStatus,
			Integer returnVisitsStatus, String linkman, String linkphone,
			Date appointmentTime, String maintainKind, Integer customKind,
			Integer secondaryMaintain, String remark, String cruser,
			Date crtime, String gardenName) {
		this.ordersid = ordersid;
		this.serialNumber = serialNumber;
		this.repairTime = repairTime;
		this.repairType = repairType;
		this.contents = contents;
		this.roomCode = roomCode;
		this.dispatchStatus = dispatchStatus;
		this.completionStatus = completionStatus;
		this.returnVisitsStatus = returnVisitsStatus;
		this.linkman = linkman;
		this.linkphone = linkphone;
		this.appointmentTime = appointmentTime;
		this.maintainKind = maintainKind;
		this.customKind = customKind;
		this.secondaryMaintain = secondaryMaintain;
		this.remark = remark;
		this.cruser = cruser;
		this.crtime = crtime;
		this.gardenName = gardenName;
	}

	

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "ordersid", unique = true, nullable = false, length = 32)
	public String getOrdersid() {
		return this.ordersid;
	}

	public void setOrdersid(String ordersid) {
		this.ordersid = ordersid;
	}

	@Column(name = "gardenid", length = 32)
	public String getGardenid() {
		return this.gardenid;
	}

	public void setGardenid(String gardenid) {
		this.gardenid = gardenid;
	}

	@Column(name = "serial_number", length = 50)
	public String getSerialNumber() {
		return this.serialNumber;
	}

	public void setSerialNumber(String serialNumber) {
		this.serialNumber = serialNumber;
	}

	@Column(name = "repair_time", length = 23)
	public Date getRepairTime() {
		return this.repairTime;
	}

	public void setRepairTime(Date repairTime) {
		this.repairTime = repairTime;
	}

	@Column(name = "repair_type")
	public Integer getRepairType() {
		return this.repairType;
	}

	public void setRepairType(Integer repairType) {
		this.repairType = repairType;
	}

	@Column(name = "contents", length = 1000)
	public String getContents() {
		return this.contents;
	}

	public void setContents(String contents) {
		this.contents = contents;
	}

	@Column(name = "room_code", length = 50)
	public String getRoomCode() {
		return this.roomCode;
	}

	public void setRoomCode(String roomCode) {
		this.roomCode = roomCode;
	}

	@Column(name = "dispatch_status")
	public Integer getDispatchStatus() {
		return this.dispatchStatus;
	}

	public void setDispatchStatus(Integer dispatchStatus) {
		this.dispatchStatus = dispatchStatus;
	}

	@Column(name = "completion_status")
	public Integer getCompletionStatus() {
		return this.completionStatus;
	}

	public void setCompletionStatus(Integer completionStatus) {
		this.completionStatus = completionStatus;
	}

	@Column(name = "return_visits_status")
	public Integer getReturnVisitsStatus() {
		return this.returnVisitsStatus;
	}

	public void setReturnVisitsStatus(Integer returnVisitsStatus) {
		this.returnVisitsStatus = returnVisitsStatus;
	}

	@Column(name = "linkman", length = 50)
	public String getLinkman() {
		return this.linkman;
	}

	public void setLinkman(String linkman) {
		this.linkman = linkman;
	}

	@Column(name = "linkphone", length = 50)
	public String getLinkphone() {
		return this.linkphone;
	}

	public void setLinkphone(String linkphone) {
		this.linkphone = linkphone;
	}

	@Column(name = "appointment_time", length = 23)
	public Date getAppointmentTime() {
		return this.appointmentTime;
	}

	public void setAppointmentTime(Date appointmentTime) {
		this.appointmentTime = appointmentTime;
	}

	@Column(name = "maintain_kind", length = 50)
	public String getMaintainKind() {
		return this.maintainKind;
	}

	public void setMaintainKind(String maintainKind) {
		this.maintainKind = maintainKind;
	}

	@Column(name = "custom_kind")
	public Integer getCustomKind() {
		return this.customKind;
	}

	public void setCustomKind(Integer customKind) {
		this.customKind = customKind;
	}

	@Column(name = "secondary_maintain")
	public Integer getSecondaryMaintain() {
		return this.secondaryMaintain;
	}

	public void setSecondaryMaintain(Integer secondaryMaintain) {
		this.secondaryMaintain = secondaryMaintain;
	}

	@Column(name = "remark", length = 1000)
	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name = "cruser", length = 50)
	public String getCruser() {
		return this.cruser;
	}

	public void setCruser(String cruser) {
		this.cruser = cruser;
	}

	@Column(name = "crtime", length = 23)
	public Date getCrtime() {
		return this.crtime;
	}

	public void setCrtime(Date crtime) {
		this.crtime = crtime;
	}
	
	@Transient
	public String getGardenName() {
		return gardenName;
	}
	public void setGardenName(String gardenName) {
		this.gardenName = gardenName;
	}

}